package com.guiji.text2video.fastvideo.domain.vo;

import java.util.ArrayList;

/**
 * description NLP取关键词请求类
 *
 * @author zxt
 * @date 2021/4/14 11:05
 * @since 1.0
 */
public class NlpRequest {

    /**
     * 文章标题
     */
    private String title;

    /**
     * 句子列表
     */
    private ArrayList<String> text;

    /**
     * 资源标识
     * 0：三国
     * 1：水浒
     */
    private int domain;

    /**
     * 索引ES关键字个数
     */
    private int wordsNum;

    /**
     * 适用模型，0，1,2
     * 每个模型结果不一样
     */
    private int model;

    /**
     * 相似度的阈值
     * 默认0.8
     */
    private float threshold;

    /**
     * 备用配置对象
     */
    private NLPBackup backup;

    public NLPBackup getBackup() {
        return backup;
    }

    public void setBackup(NLPBackup backup) {
        this.backup = backup;
    }

    public int getDomain() {
        return domain;
    }

    public void setDomain(int domain) {
        this.domain = domain;
    }

    public int getWordsNum() {
        return wordsNum;
    }

    public void setWordsNum(int wordsNum) {
        this.wordsNum = wordsNum;
    }

    public int getModel() {
        return model;
    }

    public void setModel(int model) {
        this.model = model;
    }

    public float getThreshold() {
        return threshold;
    }

    public void setThreshold(float threshold) {
        this.threshold = threshold;
    }

    public String getTitle() {
        return title;
    }

    @Override
    public String toString() {
        return "{" +
                "title='" + title + '\'' +
                ", text=" + text +
                '}';
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public ArrayList<String> getText() {
        return text;
    }

    public void setText(ArrayList<String> text) {
        this.text = text;
    }

    public NlpRequest(String title, ArrayList<String> text) {
        this.title = title;
        this.text = text;
    }

    public NlpRequest() {
    }
}
